﻿using System;

namespace Innovative.Atom.Timer.Event
{
	public class AtomExceptionEventArgs : EventArgs
	{
		private AtomException _exception = null;

		public AtomExceptionEventArgs(AtomException exception)
		{
			this.Exception = exception;
		}

		public AtomException Exception
		{
			get
			{
				return _exception;
			}
			private set
			{
				_exception = value;
			}
		}

		public static AtomExceptionEventArgs FromException(AtomException exception)
		{
			return new AtomExceptionEventArgs(exception);
		}
	}
}
